package cn.desk.linksource.provider;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.desk.commons.service.IBaseService;
import cn.desk.commons.util.RequestProvider;
import cn.desk.linksource.entity.LinkSource;

public class LinkSourceRequestProvider implements RequestProvider {
	private IBaseService<LinkSource> service;

	@Override
	public Map<String, Object> provider() {
		LinkSource ls= new LinkSource();
		ls.setDeleteClass(LinkSource.DELETECLASS_NORMAL);
		List<LinkSource> list = service.list(ls);
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("linkSourceList", list);
		return map;
	}

	public IBaseService<LinkSource> getService() {
		return service;
	}

	public void setService(IBaseService<LinkSource> service) {
		this.service = service;
	}

}
